package br.com.salaodebeleza.security;

import java.io.Serializable;

import javax.enterprise.context.SessionScoped;
import javax.inject.Inject;

import br.com.salaodebeleza.ws.UserLogin;

/**
 * @author daniel
 *
 */
@SessionScoped
public class MyCredentials implements Serializable {

	private String username;

	private String password;
	
	private String site;
	
	@Inject
	private Permissions permissions;
	
	@Inject 
	private UserLogin usuarioLogado;

	public void clear() {
		username = null;
		password = null;
		site = null;
		usuarioLogado = null;
		permissions = null;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSite() {
		return site;
	}

	public void setSite(String site) {
		this.site = site;
	}

	public UserLogin getUsuarioLogado() {
		return usuarioLogado;
	}

	public void setUsuarioLogado(UserLogin usuarioLogado) {
		this.usuarioLogado = usuarioLogado;
	}

	public Permissions getPermissions() {
		return permissions;
	}

	public void setPermissions(Permissions permissions) {
		this.permissions = permissions;
	}
	
}

